package com.ykdl.member.kid.marketcard;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;

import com.ykdl.member.base.GlobalContext;
import com.ykdl.member.constant.KidConfig;
import com.ykdl.member.kid.R;
import com.ykdl.member.kid.gears.BaseScreen;
import com.ykdl.member.kid.util.AccessTokenKeeper;

public class CardIntroWebView extends BaseScreen{
	private static AccessTokenKeeper mTokenKeeper;
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setTopTitle("圣元积分等级说明", 0, R.drawable.back_bg, new OnClickListener() {
			@Override
			public void onClick(View v) {
				
				finish();
			}
		}, 0, 0, null, R.drawable.title_bg, false);
		setContent(R.layout.cardintrowebview_xml);
		
		inint();
	}
	
	private void inint() {
		WebView webView =  (WebView)findViewById(R.id.webView);
		mTokenKeeper = new AccessTokenKeeper(this);
		String url =KidConfig.ADDITION_HELP+"?"+mTokenKeeper.getmAccessTokenTitle()+"="+mTokenKeeper.getmAccessToken();
		webView.loadUrl(url);
	}
}
